﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeRepositoryConsole.FCL
{
    public class IEnumerableSnippet
    {
        /// <summary>
        /// <seealso cref="https://stackoverflow.com/questions/1019737/favorite-way-to-create-an-new-ienumerablet-sequence-from-a-single-value"/>
        /// </summary>
        public void Create()
        {
            // empty sequence
            var sequence = Enumerable.Empty<string>();

            sequence = Enumerable.Repeat("abc", 1);

            sequence = new[] { "abc" };


        }
    }
}
